<%-- 
    Document   : EditActiv
    Created on : 2020-5-30, 17:50:11
    Author     : 19645
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>添加活动</title>

        <link href="css/bootstrap.min.css" rel="stylesheet" />
        <link href="css/flexslider.css" rel="stylesheet" />
        <link href="css/style.css" rel="stylesheet" />
        <link href="css/style_1.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/font-awesome.min.css">

        <link href="css/bootstrap.min.js" rel="stylesheet" />
        <script src="js/jquery.min.js"></script>

        <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
        <link href='http://fonts.useso.com/css?family=Source+Sans+Pro:200,300,400,600,700,900' rel='stylesheet' type='text/css'>
    </head>

    <body>
        <div class="header">
            <div class="container">
                <a class="navbar-brand" href="index"><i class="fa fa-home"></i>Home</a>

                <div class="text-center">
                    <!--搜索页面-->
                    <form action="gnms" class="form-inline">
                        <input type="text" id="input_wd" name="keyword" class="form-control keyword_text" placeholder="输入活动名称">
                        <button type="submit" class="btn banner_btn keyword_text1">搜索</button>
                    </form>

                </div>

                <div class="menu"> <a class="toggleMenu" href="#"><img src="images/nav_icon.png" alt="" /> </a>
                    <ul class="nav" id="nav">
                        <li class=""><a href="salfm">日志</a></li>
                        <li><a href="allActivity">活动</a></li>
                        <li><a href="profile">个人页面</a></li>
                        <li><a href="wrmps">管理员登录</a></li>

                    </ul>
                    <script type="text/javascript" src="js/responsive-nav.js"></script> 
                </div>
            </div>
        </div>

        <div class="about">
            <div class="container">
                <section class="title-section">
                    <h2 class="title-section">添加新活动</h2>
                </section>
            </div>
        </div>

        <div class="container" style="width: 60%">
            <form class="form-horizontal" id="add_form" action="AddActivity">
                <label for="Aname">活动标题：</label>
                <input id="Aname" required type="text" name="aname" placeholder="20字以内" class="form-control">
                <br>
                <label for="cover">上传图片：</label>
                <button type='button' name="acover" class="btn"  onclick="document.getElementById('cover').click()">
                    <i class="fa fa-file-image-o"></i>
                </button>
                
                <br>
                <input type="file" id="cover" class="hidden file" size="28" name="acover" onchange="document.getElementById('filefield').value=this.value" />
                in
                <label for="Arank">志愿者等级：</label>
                <div class="radio">
                    <label>
                        <input type="radio" name="arank" id="Arank1" value="无限制" checked="checked">
                        无限制
                    </label>
                </div>
                <div class="radio">
                    <label>
                        <input type="radio" name="arank" id="Arank2" value="二级以上用户">
                        二级以上用户
                    </label>
                </div>
                <div class="radio">
                    <label>
                        <input type="radio" name="arank" id="Arank3" value="三级以上用户">
                        三级以上用户
                    </label>
                </div>
                <br>
                <label for="Anumber">志愿者人数：</label>
                <input id="Anumber" type="number" name="anumber" placeholder="请输入数字" class="form-inline" oninput = "value=value.replace(/[^\d]/g,'')">
                <br><br>
                <label for="Astatus">志愿者招募状态：</label>
                <div class="radio">
                    <label>
                        <input type="radio" name="astatus" id="Astatus1" value="招募中" checked="checked">
                        招募中
                    </label>
                </div>
                <div class="radio">
                    <label>
                        <input type="radio" name="astatus" id="Astatus2" value="招募结束">
                        招募结束
                    </label>
                </div>
                <br>
                <label for="Adeadline">招募截至时间：</label>
                <input id="Adeadline" type="text" required name="adeadline" placeholder="请按照规范填写，例：2020-6-12" class="form-control">
                <br>
                <label for="AstartTime">活动开始时间：</label>
                <input id="AstartTime" type="text" required name="astartTime" placeholder="例如:2020年X月X日上午8：00" class="form-control">
                <br>
                <label for="AendTime">活动结束时间：</label>
                <input id="AendTime" type="text" required name="aendTime" placeholder="例如:2020年X月X日上午8：00" class="form-control">
                <br>
                <label for="Aaddress">活动地址：</label>
                <input id="Aaddress" type="text" required name="aaddress" placeholder="输入地址" class="form-control">
                <br>
                <label for="Atransport">乘坐交通工具：</label>
                <input id="Atransport" type="text" name="atransport" placeholder="输入交通工具" class="form-control">
                <br>
                
                <label for="Atype">活动简要概括：</label>
                <input id="Atype" type="text" required name="atype" placeholder="一句话概括活动（用于首页推荐）" class="form-control">
                <br>
                
                <label for="Anote">活动介绍：</label>
                <input id="Anote" type="text" required name="anote" placeholder="活动详细介绍" class="form-control">
                <br>
                <!--这里看能不能自动获取-->
                <label for="AuserID">用户名称：</label>
                <input type="text" id="AuserID" required name="auserId" placeholder="输入你的用户名" class="form-control">
                <!--<input id="ibatch" name="sbatch" type="text" readonly class="form-control" value="</%=request.getAttribute("batchName")%>">-->
                <br>
                
                <div style="text-align: center; margin:0px 0px 20px 0px;">
                    <button class="submit" type="submit">提交</button>
                </div>
                
            </form>
        </div>


        <div class="footer">
            <div class="footer_bottom">
                <div class="follow-us"> <a class="fa fa-facebook social-icon" href="#"></a> <a class="fa fa-twitter social-icon" href="#"></a> <a class="fa fa-linkedin social-icon" href="#"></a> <a class="fa fa-google-plus social-icon" href="#"></a> </div>
                <div class="copy">
                    <p>制作人@软件外包BD03班平平无奇天才队 <a href="#" target="_blank" title="联系我们">联系我们</a> 
                </div>
            </div>
        </div>
    </body>
</html>
